package com.menusifu.onlineorder.mongo.conf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.MongoDbFactory;
import org.springframework.data.mongodb.MongoTransactionManager;

@Configuration
public class MongoTransactionConfig {

    @Bean("mongoTransaction")
    MongoTransactionManager mongoTransactionManager(MongoDbFactory factory){
        return new MongoTransactionManager(factory);
    }
}
